/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bluetooth;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

/**
 *
 * @author wssccc
 */
public class BlueUtil {

    private MIDlet app = null;

    public BlueUtil(MIDlet instance) {
        app = instance;
    }

    public BlueComm createBluetoothConnection() {
        DeviceListCanvas form = new DeviceListCanvas(app);
        Display.getDisplay(app).setCurrent(form);
        //new Thread(form).start();
        
        return form.getBlueConnection();

    }
}
